﻿<%@ Page Language="C#" Title="LoginView" Inherits="P.InOut.NetMvc.Components.FormsAuthenticationComponent.Views.LoginStatus" %>
<%@ Import Namespace="P.InOut.NetMvc.Controllers" %>

<% if (ViewData.Model.IsLoggedIn) { %>
    logged in as <%= Html.ActionLink<ProfilesController>(x => x.Index(), ViewData.Model.UserName) %> <%=Html.ActionLink<FormsAuthenticationController>(c => c.Logout(), "(logout)") %>
<% } else { %>
    Not authenticated. - <%=Html.ActionLink<FormsAuthenticationController>(c => c.Login(), "Login") %>
<% } %>